import request from "./request.js"


/**
 * 轮播列表
 */
export function bannerList(type) {
	return request({
		url: '/business/api/comCarousel/findList',
		method: 'GET',
		data: {
			type
		}
	})
}

/**
 * 轮播详情
 */
export function bannerDetail(data) {
	return request({
		url: '/business/api/comCarousel/detail',
		method: 'POST',
		data
	})
}

/**
 * 金刚区获取
 */
export function homeIconList(data) {
	return request({
		url: '/business/api/comDiamondLocation/findList',
		method: 'GET',
		data
	})
}
/**
 * 合作伙伴
 */
export function cooperationList(data) {
	return request({
		url: '/business/api/clientArticle/cooperationList',
		method: 'GET',
		data
	})
}
/**
 * 文章列表
 */
export function getArticleFindPage(data) {
	return request({
		url: '/business/api/clientArticle/findPage',
		method: 'GET',
		data
	})
}
/**
 * 文章详情
 */
export function getArticleFindDetail(data) {
	return request({
		url: '/business/api/clientArticle/findDetail',
		method: 'GET',
		data
	})
}
/**
 * 文章分类（只有诺众课堂存在）
 */
export function getClassifyFindList(data) {
	return request({
		url: '/business/api/clientArticleClassify/findList',
		method: 'GET',
		data
	})
}


/**
 * 项目列表
 */
export function getProjectFindPage(data) {
	return request({
		url: '/business/api/clientProjectInfoRestrict/findPage',
		method: 'POST',
		data
	})
}


/**
 * 项目详情
 */
export function getProjectDetail(projectId) {
	return request({
		url: '/business/api/clientProjectInfoRestrict/projectInfo/detail',
		method: 'GET',
		data: {
			projectId
		}
	})
}

/**
 * 签名指定重签
 */
export function projectMyReSign(data) {
	return request({
		url: '/business/api/clientUserProjectOrder/myReSign',
		method: 'POST',
		data
	})
}

/**
 * 根据购买金额获取预期年化收益
 */
export function getExpectAnnualIncome(data) {
	return request({
		url: '/business/api/clientProjectInfoRestrict/getExpectAnnualIncome',
		method: 'GET',
		data
	})
}

/**
 * 项目下单
 */
export function addProjectOrder(data) {
	return request({
		url: '/business/api/clientUserProjectOrder/order',
		method: 'POST',
		data
	})
}

/**
 * 项目支付账户信息（预约登记）
 */
export function getProjectBankDetail(projectAccountId) {
	return request({
		url: '/business/api/clientProjectBank/findDetail',
		method: 'GET',
		data: {
			projectAccountId
		}
	})
}

/**
 * 我的项目列表
 */
export function getProjectMyPage(data) {
	return request({
		url: '/business/api/clientUserProjectOrder/myPage',
		method: 'GET',
		data
	})
}
/**
 * 我的项目详情
 */
export function getProjectMyDetail(userProjectId) {
	return request({
		url: '/business/api/clientUserProjectOrder/myDetail',
		method: 'GET',
		data: {userProjectId}
	})
}
/**
 * 项目类型列表
 */
export function getProjectTypeList() {
	return request({
		url: '/business/api/clientProjectInfoType/findList',
		method: 'GET',
	})
}

/**
 * 随机获取推荐项目
 */
export function getRandomProjectList() {
	return request({
		url: '/business/api/clientProjectInfoRestrict/projectInfo/random',
		method: 'GET',
	})
}
/**
 * 交易记录
 */
export function getProjectRecordsPage(data) {
	return request({
		url: '/business/api/clientUserProjectOrder/recordsPage',
		method: 'GET',
		data
	})
}
/**
 * 订单收益详情
 */
export function getProjectOrder(data) {
	return request({
		url: '/business/api/clientUserProjectOrder/successOrderIncome',
		method: 'GET',
		data
	})
}

/**
 * 获取签到配置信息
 */
export function getSignList() {
	return request({
		url: '/business/api/clientSign/disposition',
		method: 'GET',
	})
}

/**
 * 操作签到
 */
export function getUserSign(data) {
	return request({
		url: '/business/api/clientSign/userSign',
		method: 'POST',
		data
	})
}

/**
 * 根据key获取配置信息
 */
export function getConfig(configKey) {
	return request({
		url: '/business/api/common/getConfig',
		method: 'GET',
		data: {
			configKey
		}
	})
}

/**
 * 公司环境 VR列表
 */
export function getCorporationEnvironment(data) {
	return request({
		url: '/business/api/clientCorporationEnvironment/findPage',
		method: 'GET',
		data
	})
}
/**
 * 公司环境 VR详情
 */
export function getCorporationEnvironmentDetail(corporationEnvironmentId) {
	return request({
		url: '/business/api/clientCorporationEnvironment/detail',
		method: 'GET',
		data: {
			corporationEnvironmentId
		}
	})
}
